﻿@model MSAcademic.v2.Web.Areas.Admin.Models.Picture.EditGalleryPictureViewModel
@{
    ViewBag.Title = "EditPicture";
}

<h2>EditPicture</h2>
@using(Html.BeginForm())
{
   
    @Html.HiddenFor(m=>m.PictureId)
    @Html.HiddenFor(m=>m.GalleryId)
    @Html.HiddenFor(m=>m.CroppedPictureUrl,new{Id="croppedUrl"})
    @Html.HiddenFor(m=>m.OriginalPictureUrl)
    <div class="PictureContainer" hidden="hidden">
        <img src="/@Model.OriginalPictureUrl" alt="" class="PictureControl image"/>
    </div>
    <div class="currentPicture">
        <img src="/@Model.Picture.Url" alt="" class="PictureControl image"/>
    </div>
    
    <div >
        Caption: @Html.TextBoxFor(m=>m.PictureCaption)
    </div>
    <div>
        Skrivena: @Html.CheckBoxFor(m=>m.PictureIsHidden)
    </div>
    <input type="submit" value="SpremiPromjene"/>
}